
<div id="desktopBar">

<?php

	$lang_url = base_url().Settings::get_lang('current').'/'.Settings::get('admin_url');
?>

<div class="desktopTitlebarWrapper">
	<div class="desktopTitlebar">
		<h1 class="applicationTitle">ionize <?php echo($this->config->item('version')) ;?></h1>
		<a id="logoAnchor"></a>
		
		<div class="topNav">
			<ul class="menu-right">
				<li><?= lang('ionize_logged_as') ?> : <?= $current_user['screen_name'] ?></li>
				<li><a href="<?= base_url() ?>" target="_blank"><?= lang('ionize_website') ?></a></li>
				<li><a href="<?= base_url().Settings::get_lang('current').'/'.config_item('admin_url') ?>/user/logout"><?= lang('ionize_logout') ?></a></li>
				<li>
					<?php foreach(Settings::get('displayed_admin_languages') as $lang) :?>
						<a href="<?= base_url().$lang ?>/<?= config_item('admin_url')?>"><img src="<?= theme_url() ?>images/world_flags/flag_<?= $lang ?>.gif" alt="<?= $lang ?>" /></a>
					<?php endforeach ;?>
				</li>
			</ul>
		</div>
	</div>
</div>


<div id="desktopNav" class="desktopNav">

	<div class="toolMenu left">

		<ul>
			<li><a class="navlink" href="dashboard" title="<?= lang('ionize_title_welcome')?>"><?= lang('ionize_menu_dashboard')?></a></li>
			<li><a class="returnFalse"><?= lang('pr_product') ?></a>	
				<ul>
					<li><a class="navlink" href="pr_product" title="<?= lang('pr_product_new') ?>"><?=lang('pr_product_new')?></a></li>
				</ul>
			</li>
            <li><a class="navlink" href="pr_tab_management_cl"><?= lang('pr_tab') ?></a></li>
            <li><a class="navlink" href="pr_product/product_filter">Product Filter</a></li>
				
		</ul>
	</div>
	

	<div id="desktopNavToolbar_spinner" class="spinner"></div>		


	<!--
	<div class="toolbox">
		<div id="spinnerWrapper"><div id="spinner"></div></div>		
	</div>
	-->
	
</div><!-- /desktopNavbar -->


</div>

<script type="text/javascript">

	$$('.navlink').each(function(item)
	{
		item.addEvent('click', function(event)
		{
			event.preventDefault();
			
			MUI.Content.update({
				url: admin_url + ION.cleanUrl(this.getProperty('href')),
				element: 'mainPanel',
				title: this.getProperty('title')
			});
		});
	});
	

	$('mediamanagerlink').addEvent('click', function(event)
	{
		event.preventDefault();
		
		MUI.Content.update({
			url: admin_url + ION.cleanUrl(this.getProperty('href')),
			element: 'mainPanel',
			title: this.getProperty('title'),
			padding: {top: 0, right: 0, bottom: 0, left: 0}
		});
	});


	$('aboutLink').addEvent('click', function(event)
	{
		event.preventDefault();

		new MUI.Modal({
			id: 'about',
			title: 'MUI',
			content: {url: admin_url + 'desktop/get/about'},
			type: 'modal2',
			width: 360,
			height: 210,
			padding: {top: 70, right: 12, bottom: 10, left: 22},
			scrollbars: false
		});
	});
	
</script>

